forum

home / developersection / forums / how to redirecttoaction with anchor tag in mvc?

How to RedirectToAction with anchor tag in mvc?

Takeshi Okada 8830 09-Oct-2014
I have the following problem: For example I have route like this.

routes.Add(new Route("forums/thread/{threadOid}/last", new MvcRouteHandler())
           Defaults = new RouteValueDictionary(
             new { controller = "Thread", action ="ShowThreadLastPostPage"}),
        Constraints = new RouteValueDictionary(new { threadOid = @"^\d+$" })
    }
);

Is there a way using RedirectToAction method navigate to the URL like this.
forums/thread/{threadOid}/last#postOid


Updated on 09-Oct-2014
Can you answer this question?

Answer

1 Answers

Liked By